<?
include('./header.inc');
include('./database.inc');

if (!isset($_GET['sid'])){
	header( 'Location: ./slides.php' ) ;
	die();
}
$sid = mysql_real_escape_string($_GET['sid']);

$query1 = "SELECT * FROM slides WHERE slide_id='$sid'";

$result1 = mysql_query($query1);

$row = mysql_fetch_array( $result1 );
include('./pagehead.inc');
?>
<h2>Edit Slide Set Info</h2>
<form name="editslides" action="./saveslide.php" method="post" enctype="multipart/form-data">
<table>
	<tr><td class="label">Slide Name:</td><td><input type="text" name="name" value="<?echo $row['slide_name'];?>" /></td></tr>
	<tr><td class="lable">Slide Notes:</td><td><textarea name="notes"><?echo $row['notes'];?></textarea></td></tr>
	<tr><td></td><td>
	<input type="button" name="cancel" value="Cancel" class="cancel button" onclick="parent.location='./users.php'" />
	<input type="submit" name="submit" value="Save" class="button"/></td>
</table>
<input type="hidden" name="submitted" value="submitted" />
<input type="hidden" name="sid" value="<? echo $sid; ?>" />
</form>

<h2>Edit Slide Set Images</h2>
<table style="text-align:center">
	<tr>
	<td><img src="../images/<?echo $row['folder'].'/'.$row['100xfile']; ?>" width="180" /></td>
	<td><img src="../images/<?echo $row['folder'].'/'.$row['400xfile']; ?>" width="180" /></td>
	<td><img src="../images/<?echo $row['folder'].'/'.$row['1000xfile']; ?>" width="180" /></td></tr>
	<tr>
	<td><a href="./editslideimage.php?sid=<? echo $sid;?>&image=100x">Change 100x Image</a></td>
	<td><a href="./editslideimage.php?sid=<? echo $sid;?>&image=400x">Change 400x Image</a></td>
	<td><a href="./editslideimage.php?sid=<? echo $sid;?>&image=1000x">Change 1000x Image</a></td>
</table>
<?
include('./pagefoot.inc');
?>